package com.yl.danmo.service.impl;


import com.yl.common.core.utils.DateUtils;
import com.yl.danmo.domain.DanmoPersonInfo0;
import com.yl.danmo.mapper.DanmoPersonInfo0Mapper;
import com.yl.danmo.service.IDanmoPersonInfo0Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 会员详情0Service业务层处理
 * 
 * @author yl
 * @date 2025-04-12
 */
@Service
public class DanmoPersonInfo0ServiceImpl implements IDanmoPersonInfo0Service
{
    @Autowired
    private DanmoPersonInfo0Mapper danmoPersonInfo0Mapper;

    /**
     * 查询会员详情0
     * 
     * @param id 会员详情0主键
     * @return 会员详情0
     */
    @Override
    public DanmoPersonInfo0 selectDanmoPersonInfo0ById(Long id)
    {
        return danmoPersonInfo0Mapper.selectDanmoPersonInfo0ById(id);
    }

    /**
     * 查询会员详情0列表
     * 
     * @param danmoPersonInfo0 会员详情0
     * @return 会员详情0
     */
    @Override
    public List<DanmoPersonInfo0> selectDanmoPersonInfo0List(DanmoPersonInfo0 danmoPersonInfo0)
    {
        return danmoPersonInfo0Mapper.selectDanmoPersonInfo0List(danmoPersonInfo0);
    }

    /**
     * 新增会员详情0
     * 
     * @param danmoPersonInfo0 会员详情0
     * @return 结果
     */
    @Override
    public int insertDanmoPersonInfo0(DanmoPersonInfo0 danmoPersonInfo0)
    {
        danmoPersonInfo0.setCreateTime(DateUtils.getNowDate());
        return danmoPersonInfo0Mapper.insertDanmoPersonInfo0(danmoPersonInfo0);
    }

    /**
     * 修改会员详情0
     * 
     * @param danmoPersonInfo0 会员详情0
     * @return 结果
     */
    @Override
    public int updateDanmoPersonInfo0(DanmoPersonInfo0 danmoPersonInfo0)
    {
        danmoPersonInfo0.setUpdateTime(DateUtils.getNowDate());
        return danmoPersonInfo0Mapper.updateDanmoPersonInfo0(danmoPersonInfo0);
    }

    /**
     * 批量删除会员详情0
     * 
     * @param ids 需要删除的会员详情0主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPersonInfo0ByIds(Long[] ids)
    {
        return danmoPersonInfo0Mapper.deleteDanmoPersonInfo0ByIds(ids);
    }

    /**
     * 删除会员详情0信息
     * 
     * @param id 会员详情0主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPersonInfo0ById(Long id)
    {
        return danmoPersonInfo0Mapper.deleteDanmoPersonInfo0ById(id);
    }
}
